package com.beijiteshop.shop.ui.coupon.adapter

import com.beijiteshop.shop.R
import com.beijiteshop.shop.databinding.ItemCouponBinding
import com.beijiteshop.shop.model.api.response.Coupon
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/17 17:51
 * @Description
 */
class CouponAdapter(data: MutableList<Coupon>) : BaseQuickAdapter<Coupon,BaseDataBindingHolder<ItemCouponBinding>>(
    R.layout.item_coupon,data),LoadMoreModule {

    override fun convert(holder: BaseDataBindingHolder<ItemCouponBinding>, item: Coupon) {
        holder.dataBinding?.coupon = item
    }
}